// 是否登录
export function isLogin() {
	return uni.getStorageSync('token') ? true : false;
}

// 检查是否为tabbar页面
export function checkTabbarPage(url) {
	return [
		'/pages/index/index',
		'/pages/topic/topic',
		'/pages/category/category',
		'/pages/cart/cart',
		'/pages/user/user'
	].some(item => {
		return url === item;
	})
}
